package model

import "go.mongodb.org/mongo-driver/bson/primitive"

//质检
//检查日报
type DailyReport struct {
	Id               primitive.ObjectID `bson:"_id,omitempty" json:"_id" form:"_id"`
	Norms_Type       string             `bson:"norms_type"  form:"norms_type" json:"norms_type"`
	Batch_Number     string             `bson:"batch_number" binding:"required" form:"batch_number" json:"batch_number"`
	Room_Number      string             `bson:"room_number" binding:"required" form:"room_number" json:"room_number"`
	Length           int                `bson:"length" json:"length" form:"length"`
	Stipulate_Time   string             `bson:"stipulate_time" binding:"required" form:"stipulate_time" json:"stipulate_time"` //前端规定时间
	Diameter         int                `bson:"diameter" json:"diameter" form:"diameter"`                                      //石墨电极直径，单位mm
	Total_Acceptance struct {
		Weight float32 `bson:"weight" binding:"required" json:"weight" form:"weight"`
		Amount int     `bson:"amount" binding:"required" json:"amount" form:"amount"`
	}
	Accepts struct {
		Weight float32 `bson:"weight"  json:"weight" form:"weight"`
		Amount int     `bson:"amount"  json:"amount" form:"amount"`
	}
	Waste struct {
		Weight float32 `bson:"weight"  json:"weight" form:"weight"`
		Amount int     `bson:"amount"  json:"amount" form:"amount"`
	}
	Desc      string `bson:"desc" form:"desc" json:"desc"`
	Head      string `bson:"head" form:"head" json:"head"`
	Inspector string `bson:"inspector" form:"inspector" json:"inspector"`
	Tabulator string `bson:"tabulator" form:"tabulator" json:"tabulator"`
	Craft     string `bson:"craft" form:"craft" json:"craft"`
	Creator   string `bson:"creator" json:"creator" form:"creator"`       //创建者
	CreatedAt string `bson:"createdAt" json:"createdAt" form:"createdAt"` //后端生成时间
	Describe  string `bson:"describe" json:"describe" form:"describe"`    //描述
}
